<?php namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ProjectDevice extends Model {

	protected $table = 'project_device';
	protected $fillable = ['project_id', 'device_id'];

	public function device()
	{
		return $this->hasOne("App\Models\Devices", "id", "device_id");
	}

	public function projects()
	{
		return $this->hasOne("App\Models\Projects", "id", "project_id");
	}

}
